package cn.tm.liu.mode.builder.demo1;

/**
 * @author Marvin.L
 * @description
 * @date 2022.04.09 11.23
 */
public abstract class Computer {
    protected String board;
    protected String display;
    protected String os;

    protected Computer() {
    }

    public Computer setBoard(String board) {
        this.board = board;
        return this;
    }

    public Computer setDisplay(String display) {
        this.display = display;
        return this;
    }

    public abstract Computer setOs();

    @Override
    public String toString() {
        return "{\"Computer\":{"
                + "\"board\":\""
                + board + '\"'
                + ",\"display\":\""
                + display + '\"'
                + ",\"os\":\""
                + os + '\"'
                + "}}";
    }
}
